using System.ComponentModel.DataAnnotations;
using UwinEducation.Shared.Enums;

namespace UwinEducation.Application.Dtos.Descriptions
{
    /// <summary>
    /// 创建描述DTO
    /// </summary>
    public class CreateDescriptionDto
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 内容(英文)
        /// </summary>
        public string? EnContent { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Required(ErrorMessage = "类型不能为空")]
        public DescriptionType Type { get; set; }
    }
}